/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.biotecan.genome.cytobandviewer.shape;

import java.awt.geom.Rectangle2D;
import java.awt.geom.RoundRectangle2D;

/**
 *
 * @author SuFeng
 */
public final class ShapeFactory {

    private static final double arcw = 20d;
    private static final double arch = 20d;

    public static RoundRectangle2D createRoundRectangle2D(double x, double y, double w, double h) {
        return new RoundRectangle2D.Double(x, y, w, h, arcw, arch);
    }

    public static Rectangle2D createRectangle2D(double x, double y, double w, double h) {
        return new Rectangle2D.Double(x, y, w, h);
    }
}
